// -----------------------------------------------------------------------
//  <copyright file="AbstractBuilder.cs" company="OSharp开源团队">
//      Copyright (c) 2014 OSharp. All rights reserved.
//  </copyright>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2014:07:04 18:09</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Properties;

using OSharp.Localized;


namespace DaprPlus.Filters;

/// <summary>
/// 筛选操作方式
/// </summary>
public enum FilterOperate
{
    /// <summary>
    /// 并且
    /// </summary>
    [OperateCode("and")]
    [LocalizedDescription("String_FilterOperate_And", typeof(ResDaprPlus))]
    And = 1,

    /// <summary>
    /// 或者
    /// </summary>
    [OperateCode("or")]
    [LocalizedDescription("String_FilterOperate_Or", typeof(ResDaprPlus))]
    Or = 2,

    /// <summary>
    /// 等于
    /// </summary>
    [OperateCode("equal")]
    [LocalizedDescription("String_FilterOperate_Equal", typeof(ResDaprPlus))]
    Equal = 3,

    /// <summary>
    /// 不等于
    /// </summary>
    [OperateCode("notequal")]
    [LocalizedDescription("String_FilterOperate_NotEqual", typeof(ResDaprPlus))]
    NotEqual = 4,

    /// <summary>
    /// 小于
    /// </summary>
    [OperateCode("less")]
    [LocalizedDescription("String_FilterOperate_Less", typeof(ResDaprPlus))]
    Less = 5,

    /// <summary>
    /// 小于或等于
    /// </summary>
    [OperateCode("lessorequal")]
    [LocalizedDescription("String_FilterOperate_LessOrEqual", typeof(ResDaprPlus))]
    LessOrEqual = 6,

    /// <summary>
    /// 大于
    /// </summary>
    [OperateCode("greater")]
    [LocalizedDescription("String_FilterOperate_Greater", typeof(ResDaprPlus))]
    Greater = 7,

    /// <summary>
    /// 大于或等于
    /// </summary>
    [OperateCode("greaterorequal")]
    [LocalizedDescription("String_FilterOperate_GreaterOrEqual", typeof(ResDaprPlus))]
    GreaterOrEqual = 8,

    /// <summary>
    /// 以……开始
    /// </summary>
    [OperateCode("startswith")]
    [LocalizedDescription("String_FilterOperate_StartsWith", typeof(ResDaprPlus))]
    StartsWith = 9,

    /// <summary>
    /// 以……结束
    /// </summary>
    [OperateCode("endswith")]
    [LocalizedDescription("String_FilterOperate_EndsWith", typeof(ResDaprPlus))]
    EndsWith = 10,

    /// <summary>
    /// 字符串的包含（相似）
    /// </summary>
    [OperateCode("contains")]
    [LocalizedDescription("String_FilterOperate_Contains", typeof(ResDaprPlus))]
    Contains = 11,

    /// <summary>
    /// 字符串的不包含
    /// </summary>
    [OperateCode("notcontains")]
    [LocalizedDescription("String_FilterOperate_NotContains", typeof(ResDaprPlus))]
    NotContains = 12,

    ///// <summary>
    ///// 包括在
    ///// </summary>
    //[OperateCode("in")]
    //In = 13,

    ///// <summary>
    ///// 不包括在
    ///// </summary>
    //[OperateCode("notin")]
    //NotIn = 14
}
